#include <crfstream.h>
using namespace cr;

int _tmain(int argc, _TCHAR* argv[])
{
	file_istream is;
	file_ostream os;
	is.open(_T("g:\\test.txt"));
	//is.reset(10, 10);
	os.open(_T("g:\\test1.txt"));
	//os.reset(10, 10);
	try {
		while (true) {
			byte ch = is.getbyte();
			os.putbyte(ch);
		}
	}
	catch (exception<stream_base>&)
	{}
	is.close();
	os.close();
	return 0;
}

